package com.retail.order.remote;

import com.retail.common.core.domain.Result;
import com.retail.order.remote.factory.OrderRemoteFallbackFactory;
import com.retail.order.vo.OrderRequest;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Author: 靳家振
 * @Date: 2024/3/6 14:04
 * @Description:
 **/

@FeignClient(contextId = "OrderRemoteService",value = "retail-order",fallbackFactory = OrderRemoteFallbackFactory.class)
public interface OrderRemoteService {
    @PostMapping("/orderSku/getOrderId")
    public Result getOrderId(@RequestBody OrderRequest orderRequest);
}
